﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<dbPoll_Application.Models.GenericEmail>" %>
<%@ Import Namespace="dbPoll_Application.Helpers"%>
<tr class="editorRow">
<td align="right"><label><span style="color: Red;">*</span>E-mail:</label></td>
<% using (Html.BeginCollectionItem("GenericEmails"))
   { %>
<td><%= Html.TextBoxFor(model => model.Email, new { @style = "width:200px", @class = "GenericEmail" })%></td>
<td><input type="button" id="Remove" value="Remove"/></td>
<td><span><%= Html.ValidationMessageFor(model => model.Email)%></span></td>
<% } %>
</tr>